package org.gd.hellojaxb.interfaces;

import javax.xml.bind.annotation.*;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class UserImpl implements User {

    private Long id;
    private String name;
    private String login;

    public UserImpl() {
    }

    public UserImpl(Long id, String name, String login) {
        this();
        this.id = id;
        this.name = name;
        this.login = login;
    }

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getLogin() {
        return login;
    }
}
